#!/bin/bash
# Copyright 2024 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
LOCAL_HIAI=/usr/local/Ascend
export ASCEND_HOME_PATH=${LOCAL_HIAI}/latest
export TBE_IMPL_PATH=${LOCAL_HIAI}/latest/opp/built-in/op_impl/ai_core/tbe/impl/:${TBE_IMPL_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/lib64/:${LOCAL_HIAI}/add-ons/:${LD_LIBRARY_PATH}

export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/tools/aoe/lib64/:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling/:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/opp/built-in/op_impl/ai_core/tbe/op_tiling/lib/linux/aarch64:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/compiler/lib64/plugin/opskernel/:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/hccl/lib64/:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/hccl/lib64/plugin/opskernel:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/compiler/lib64/:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=${LOCAL_HIAI}/latest/compiler/lib64/plugin/nnengine:${LD_LIBRARY_PATH}

export ASCEND_OPP_PATH=${LOCAL_HIAI}/latest/opp
export ASCEND_AICPU_PATH=${ASCEND_OPP_PATH}/..
export ASCEND_OPP_KERNEL_PATH=${LOCAL_HIAI}/latest/
export TOOLCHAIN_HOME=${LOCAL_HIAI}/latest/toolkit

export PATH=${LOCAL_HIAI}/latest/compiler/ccec_compiler/bin/:${PATH}
export PATH=${LOCAL_HIAI}/latest/hccl/bin/:${PATH}
export PATH=${LOCAL_HIAI}/compiler/bin/:${PATH}
export PATH=${LOCAL_HIAI}/compiler/python/site-packages/:${PATH}

export PYTHONPATH=${LOCAL_HIAI}/latest/opp/built-in/op_impl/ai_core/tbe/:${PYTHONPATH}
export PYTHONPATH=${LOCAL_HIAI}/hccl/python/site-packages/:${PYTHONPATH}

export DEVICE_MEMORY_CAPACITY=1073741824000
export NOT_FULLY_USE_DEVICES=off
